using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class CloseMicroBlog : GeneratedMessageLite<CloseMicroBlog, CloseMicroBlog.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<CloseMicroBlog, CloseMicroBlog.Builder>
		{
			private bool resultIsReadOnly;
			private CloseMicroBlog result;
			protected override CloseMicroBlog.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override CloseMicroBlog MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override CloseMicroBlog DefaultInstanceForType
			{
				get
				{
					return CloseMicroBlog.DefaultInstance;
				}
			}
			public SKBuiltinString_t MicroBlogUserName
			{
				get
				{
					return this.result.MicroBlogUserName;
				}
				set
				{
					this.SetMicroBlogUserName(value);
				}
			}
			public Builder()
			{
				this.result = CloseMicroBlog.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(CloseMicroBlog cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private CloseMicroBlog PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					CloseMicroBlog other = this.result;
					this.result = new CloseMicroBlog();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override CloseMicroBlog.Builder Clear()
			{
				this.result = CloseMicroBlog.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override CloseMicroBlog.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new CloseMicroBlog.Builder(this.result);
				}
				return new CloseMicroBlog.Builder().MergeFrom(this.result);
			}
			public override CloseMicroBlog BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override CloseMicroBlog.Builder MergeFrom(IMessageLite other)
			{
				if (other is CloseMicroBlog)
				{
					return this.MergeFrom((CloseMicroBlog)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override CloseMicroBlog.Builder MergeFrom(CloseMicroBlog other)
			{
				return this;
			}
			public override CloseMicroBlog.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override CloseMicroBlog.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(CloseMicroBlog._closeMicroBlogFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = CloseMicroBlog._closeMicroBlogFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 10u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						SKBuiltinString_t.Builder builder = SKBuiltinString_t.CreateBuilder();
						if (this.result.hasMicroBlogUserName)
						{
							builder.MergeFrom(this.MicroBlogUserName);
						}
						input.ReadMessage(builder, extensionRegistry);
						this.MicroBlogUserName = builder.BuildPartial();
					}
				}
				return this;
			}
			public CloseMicroBlog.Builder SetMicroBlogUserName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMicroBlogUserName = true;
				this.result.microBlogUserName_ = value;
				return this;
			}
			public CloseMicroBlog.Builder SetMicroBlogUserName(SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasMicroBlogUserName = true;
				this.result.microBlogUserName_ = builderForValue.Build();
				return this;
			}
			public CloseMicroBlog.Builder MergeMicroBlogUserName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasMicroBlogUserName && this.result.microBlogUserName_ != SKBuiltinString_t.DefaultInstance)
				{
					this.result.microBlogUserName_ = SKBuiltinString_t.CreateBuilder(this.result.microBlogUserName_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.microBlogUserName_ = value;
				}
				this.result.hasMicroBlogUserName = true;
				return this;
			}
			public CloseMicroBlog.Builder ClearMicroBlogUserName()
			{
				this.PrepareBuilder();
				this.result.hasMicroBlogUserName = false;
				this.result.microBlogUserName_ = null;
				return this;
			}
		}
		public const int MicroBlogUserNameFieldNumber = 1;
		private static readonly CloseMicroBlog defaultInstance;
		private static readonly string[] _closeMicroBlogFieldNames;
		private static readonly uint[] _closeMicroBlogFieldTags;
		private bool hasMicroBlogUserName;
		private SKBuiltinString_t microBlogUserName_;
		private int memoizedSerializedSize = -1;
		public static CloseMicroBlog DefaultInstance
		{
			get
			{
				return CloseMicroBlog.defaultInstance;
			}
		}
		public override CloseMicroBlog DefaultInstanceForType
		{
			get
			{
				return CloseMicroBlog.DefaultInstance;
			}
		}
		protected override CloseMicroBlog ThisMessage
		{
			get
			{
				return this;
			}
		}
		public SKBuiltinString_t MicroBlogUserName
		{
			get
			{
				return this.microBlogUserName_ ?? SKBuiltinString_t.DefaultInstance;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasMicroBlogUserName;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasMicroBlogUserName)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.MicroBlogUserName);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private CloseMicroBlog()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] closeMicroBlogFieldNames = CloseMicroBlog._closeMicroBlogFieldNames;
			if (this.hasMicroBlogUserName)
			{
				output.WriteMessage(1, closeMicroBlogFieldNames[0], this.MicroBlogUserName);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasMicroBlogUserName)
			{
				num ^= this.microBlogUserName_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			CloseMicroBlog closeMicroBlog = object_0 as CloseMicroBlog;
			return closeMicroBlog != null && (this.hasMicroBlogUserName == closeMicroBlog.hasMicroBlogUserName && (!this.hasMicroBlogUserName || this.microBlogUserName_.Equals(closeMicroBlog.microBlogUserName_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<CloseMicroBlog, CloseMicroBlog.Builder>.PrintField("MicroBlogUserName", this.hasMicroBlogUserName, this.microBlogUserName_, writer);
		}
		public static CloseMicroBlog ParseFrom(byte[] data)
		{
			return CloseMicroBlog.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private CloseMicroBlog MakeReadOnly()
		{
			return this;
		}
		public static CloseMicroBlog.Builder CreateBuilder()
		{
			return new CloseMicroBlog.Builder();
		}
		public override CloseMicroBlog.Builder ToBuilder()
		{
			return CloseMicroBlog.CreateBuilder(this);
		}
		public override CloseMicroBlog.Builder CreateBuilderForType()
		{
			return new CloseMicroBlog.Builder();
		}
		public static CloseMicroBlog.Builder CreateBuilder(CloseMicroBlog prototype)
		{
			return new CloseMicroBlog.Builder(prototype);
		}
		static CloseMicroBlog()
		{
			CloseMicroBlog.defaultInstance = new CloseMicroBlog().MakeReadOnly();
			CloseMicroBlog._closeMicroBlogFieldNames = new string[]
			{
				"MicroBlogUserName"
			};
			CloseMicroBlog._closeMicroBlogFieldTags = new uint[]
			{
				10u
			};
			object.ReferenceEquals(micromsg.Proto.CloseMicroBlog.Descriptor, null);
		}
	}
}
